﻿@model ASPMVC_first_app.Models.Customer

@{
    ViewBag.Title = "UserInfo";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@*<table class="table">
    <tr>
        <td><b>Id</b></td>
        <td><b>FirstName</b></td>
        <td><b>LastName</b></td>
        <td><b>Age</b></td>
        <td><b>Membership</b></td>
    </tr>
        <tr>
            <td>@Model.Id</td>
            <td>@Model.FirstName</td>
            <td>@Model.LastName</td>
            <td>@Model.DateOfBirth</td>
            <td>@Model.MembershipType.Name</td>
        </tr>
    </table>*@

<h1>Name : @Model.FirstName @Model.LastName</h1>
<p>MembershipType: @Model.MembershipType.Name</p>
@if (Model.DateOfBirth != null)
{
    <p>Date of birth : @Model.DateOfBirth.Value.ToShortDateString()</p>
}


